package com.codegen.handler;

import com.alibaba.fastjson.JSONObject;
import com.codegen.entity.Field;
import com.codegen.entity.TableOperate;
import com.fasterxml.jackson.databind.JavaType;
import org.apache.ibatis.type.MappedTypes;

import java.util.ArrayList;
import java.util.List;

@MappedTypes(value = {Field.class})
public class ExtendedFieldHandler extends JsonTypeHandler<List<Field>> {

    public ExtendedFieldHandler(Class<List<Field>> clazz) {
        super(clazz);
    }

    @Override
    public JavaType getJavaArrayType() {
        return getCollectionType(ArrayList.class, Field.class);
    }

}
